home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Printing / PrintPageLoop.h < prev   
Text File  |  2000-06-23  |  625b  |  36 lines

  1. // PrintPageLoop.h
  2.  
  3. #ifndef PrintPageLoop_h
  4. #define PrintPageLoop_h
  5.  
  6. #ifndef PrintPage_h
  7. #include "PrintPage.h"
  8. #endif
  9.  
  10. class PrintJob;
  11. class PrintCopyLoop;
  12. class PrintBatch;
  13.  
  14. class PrintPageLoop
  15.   {
  16.     private:
  17.         PrintBatch& batch;
  18.         PrintPage page;
  19.         uint32 number;
  20.         const uint32 start;
  21.         const uint32 stop;
  22.         
  23.     public:
  24.         explicit PrintPageLoop( const PrintJob&, PrintCopyLoop& );
  25.         
  26.         bool Finished() const                { return number >= stop; }
  27.         bool Unfinished() const                { return number < stop; }
  28.         
  29.         uint32 Number() const                { return number; }
  30.         
  31.         void operator++();
  32.         void operator++(int)                    { operator++(); }
  33.   };
  34.  
  35. #endif
  36.